package com.common.pojo.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * @Brief 原始的查询DTO
 * @Author chenyl
 * @Date 2023-08-01
 * @Version 1.0.0
 */
public class BaseQueryDTO {
    /**
     * 当前页码
     */
    private Integer curPage;
    /**
     * 每页条数
     */
    private Integer pageSize;
    /**
     * 排序规则
     */
    private List<SortOrderDTO> sortOrders = new ArrayList<>();

    public Integer getCurPage() {
        return curPage;
    }

    public void setCurPage(Integer curPage) {
        this.curPage = curPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public List<SortOrderDTO> getSortOrders() {
        return sortOrders;
    }

    public void setSortOrders(List<SortOrderDTO> sortOrders) {
        this.sortOrders = sortOrders;
    }

    @Override
    public String toString() {
        return "{curPage:" + curPage +
                ",pageSize:" + pageSize +
                ",sortOrders:" + sortOrders +
                "}";
    }
}
